def clean(ws):
    pass


if __name__ == '__main__':
    from easyconfig import Config
    c = Config()

    with c.parser() as p:
        p.add_option('workstream', alias='w', multiple=True, unspecified_default=True, required=True)

    with c.fetcher() as f:
        x = c.workstreams().list(workstream[0])
        print x._dir, type(x._dir)
        print list(x.expand())
#        for s in x.get_substreams():
#            for x in s.get_substreams():
#                print x, x.is_workstream()
#                i = x.iterations()
#                print len(i.previous())
##                for f in i.current().files():
##                    print f.file_path()
#                break
#            break
#
##        for x in x.expand():
##            print x, type(x)
##            i = x.iterations()
##
##            prev = i.previous()
##            if prev:
##                for p in prev:
##                    print p
